/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * TrainingBook
 * Copyright (C) Arnaud Duval 2010 <arnaud.duval@gmail.com>
 * 
 * Projects is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Projects is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _FILESYSTEM_UTILS_HPP_
#define _FILESYSTEM_UTILS_HPP_

#include <string>

///@brief Create a directory
void CreateDir(std::string);

///@brief Remove a file
void RemoveFile(std::string);

///@brief Return true if file exists
bool FileExists(std::string);

///@brief Return true if directory exists
bool DirExists(std::string);

///@warning Some utils function defined here have nothing to do with the filesystem

///@brief Convert a string to double precision value
double StringToDouble(std::string);

///@brief Convert a string to unsigned int value
unsigned int StringToUInt(std::string);

///@brief Convert a double precision value to a string
std::string DoubleToString(double, unsigned int);

///@brief Convert an unsigned int value to a string
std::string UIntToString(unsigned int);



#endif